<div class="form">
  <form method='post' id="form_do" name="form_do" action="{:U(MODULE_NAME.'/Auth/editUser',array('id'=>$user['id']))}">
    <dl>
	    <dt> 所属分组：</dt>
	    <dd>
	        <select name="groupID">
	            <foreach name="group" item="vo">
	                <option value="{$vo.id}" {$vo.selected}>{$vo.title}</option>
	            </foreach>
	        </select>
	    </dd>
	</dl>
	<dl>
	    <dt> 账号：</dt>
	    <dd>{$user.userName}</dd>
	</dl>
	<dl>
	    <dt> 职位：</dt>
	    <dd><input type="text" name="position" value="{$user.position}" placeholder="如：产品经理"/></dd>
	</dl>
	<dl>
	    <dt> 角色：</dt>
	    <dd>
			<input type="radio" name="role" value="1" <if condition="$user.role eq 1 "> checked="checked" </if>/>职员
			<input type="radio" name="role" value="2" <if condition="$user.role eq 2 "> checked="checked" </if>/>主管
			<input type="radio" name="role" value="3" <if condition="$user.role eq 3 "> checked="checked" </if>/>经理
	    </dd>
	</dl>
	<dl>
	    <dt> 密码：</dt>
	    <dd>
	        <input type="password" name="password" class="inp_one" />
	    </dd>
	</dl>
    <dl>
       <dt> 手机：</dt>
       <dd>
           <input type="text" name="mobile" class="inp_one" value="{$user.mobile}" />
       </dd>
   </dl>
	<dl>
	    <dt>状态：</dt>
	    <dd>
	        <input type="radio" name="status" value="0" <if condition="$user.status eq 0 "> checked="checked" </if>>禁用
	        <input type="radio" name="status" value="1" <if condition="$user.status eq 1 "> checked="checked" </if>>可用
	    </dd>
	</dl>
	<dl>
	    <dt>部门权限：</dt>
	    <dd>
	    	<div style="float: left;width: 800px;">
	    	<table cellpadding="5">
		    <foreach name="nodeArr" item="vo1" key="key">
	        <tr>
	            <td>
	            <strong>{$key}</strong>
	            </td>
	        </tr>
	        <tr>
				<td>
	            <foreach name="vo1" item="vo2">
	            	<span style="margin: 5px;display: inline-block;"><input type="checkbox" name="rule[]" value="{$vo2.id}" {$vo2.checked}/>{$vo2.title}</span>
	            </foreach>
	            </td>
	        </tr>
	        </foreach>
	        </table>
	        </div>
	    </dd>
	</dl>
    <dl>
      <dt></dt>
      <dd>
        <input type="submit" class="button-green" id="submit" value="保存"/>
        <input type="button" onclick="goBack()" class="button-return" value="返回" />
      </dd>
    </dl>
  </form>
</div>